package ar.com.greensoft.neosystem.model;

import javax.persistence.MappedSuperclass;
import javax.validation.constraints.Size;


/**
 * Simple JavaBean domain object adds a name property to {@link BaseEntity}.
 * Used as a base class for objects needing these properties.
 *  
 * @author Jorge E. Villaverde
 * @since 05/06/2011
 * @version 1.0.0
 */
@MappedSuperclass
public abstract class NamedEntity extends BaseEntity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Size(min=2, max=50)
	private String name;
		
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

}
